<!DOCTYPE html>
<html>
<head>
    <title>Update</title>
    <style type="text/css">
        #window-resizer-tooltip{
            display: none;
        }
        td,th{
            border: 1px solid red;
            padding: 5px;
        }
    </style>
</head>
<body>

<?php include_once "core/config.php" ;?>

<a href="javascript:history.go(-1)">Back</a>
<br />
<?php
if(!$conn_mysql){
    echo "ko the ket noi den server database. Loi: " . mysql_error();
}else{
    if(!$db_test){
        echo "ko the ket noi den Database: Test. Loi: " . mysql_error();
    }else{
        $sql_query = "select * from contact where id=" . $_GET["Id"];
        $result = mysql_query($sql_query, $conn_mysql);
        if (!$result) {
            echo "loi truy van: " . mysql_error();
        }else {
            $row = mysql_fetch_array($result);
        }
    }
}
;?>

<form action="update.php" method="POST">
    <?php
/*        var_dump($row["Name"]);
    ;*/?>
    Ten <input type="text" value="<?php echo $row["Name"] ;?>" name="Name">
    <br />
    Phone <input type="text" value="<?php echo $row["Phone"] ;?>" name="Phone">
    <br />
    <input type="submit">
</form>


<?php include_once "core/ga.php" ;?>
</body>
</html>